package com.stefanini.pe.bbva.bp.in.controller;

import javax.faces.context.FacesContext;
import javax.faces.event.ComponentSystemEvent;

import com.stefanini.pe.bbva.bp.in.security.AuthorizationService;
import com.stefanini.pe.bbva.bp.in.utils.SpringApplicationContext;

public class EncuestaNoClienteController {
	public void onPageLoad(ComponentSystemEvent event) {
		AuthorizationService auth = (AuthorizationService)SpringApplicationContext.getBean("authorizationService");
		if (auth.isSessionNoClientAndContextValide() && !FacesContext.getCurrentInstance().isPostback()) {
			System.out.println("EncuestaNoClienteController... is not Postback");
		}
	}
}
